Skip to main content

All Questions

-1votes
1answer
271views

Triggering a script when new TCP connection is established

So I need to run a script whenever a new TCP connection is established. I found the BCC - Tools tcpconnect.py to monitor the TCP connections but I can't find a way to leverage that tool to trigger my ...
Michele's user avatar
1vote
2answers
286views

How to execute a command when internet is back

Sometimes my wifi is connected to router but my router is not connected to internet. How can I execute a command when my internet is back (from command line)? I want to execute: mpg123 /home/user/...
jcubic's user avatar
  • 10.2k
5votes
2answers
5kviews

Stop writing to a capture file after it reaches a specific size

I'd like to monitor my network traffic of an specific interface to file. Then I would like to stop the interface if the traffic counts over 60mb total. Is there a possible way to do that?
linuscl's user avatar

close